export class RequestResultError {
  public code: number;
  public message?: string;

  constructor(code: number, message?: string) {
    this.code = code;
    this.message = message;
  }
}

export const authError = new RequestResultError(401, 'Auth error');
export const unknownError = new RequestResultError(10001, 'Unknown error');
export const noFoundError = new RequestResultError(404, 'Not found');